#include <FlameSensor.h>

FlameSensor fs1(A0);


void setup()
{
	Serial.print("FLAME SENSOR DEMO");
    Serial.println();
    Serial.println();
	
	Serial.begin(9600);
	fs1.setDebugOn();

}


void loop()
{
	
	if(fs1.isFlame())
		Serial.println("Yes Flame ");
	else
		Serial.println("No Flame ");
	
	delay(500);
	
	Serial.print("Flame Avg: ");
	Serial.println(fs1.getFlameDetectionAvg(10));

	delay(500);
}